package com.cloud.sentinel.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.liu.springcloud.entities.CommonResult;
import com.liu.springcloud.entities.Payment;


/**
 * 自定义错误类，有什么错误找这个类
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException1(BlockException blockException){
        return new CommonResult(400,"按客户自定限,global handlerException");

    }

    public static CommonResult handlerException2 (BlockException blockException){
        return new CommonResult(444,"按客户自定限,global handlerException");

    }

}
